package m.olive.data.model;
import m.framework.dao.annotation.Column;
import m.framework.dao.annotation.Table;
import m.framework.dao.model.BaseModel;
import m.framework.utils.DateTime;
import m.olive.graph.model.enums.DeviceStatus;

/**
 * @author ming
 * @date 2014年2月20日下午3:04:15
 */
@Table("设备")
public class DeviceDto extends BaseModel {
	
	@Column("设备id")
	private String deviceId;
	@Column("名称")
	private String deviceName;
	@Column("主机名,hostname或者ip")
	private String hostname;
	@Column("备注")
	private String remark;
	@Column("检测是否存活")
	private Boolean checked;
	@Column("检测命令")
	private String command;
	@Column("多久没返回认为失败")
	private Long timeout;
	@Column("设备类型")
	private String deviceType;
	@Column("当前状态")
	private DeviceStatus deviceStatus;
	@Column("创建时间")
	private DateTime createTime;
	@Column("最后一次检测时间")
	private DateTime lastCheck;
	public String getDeviceId() {
		return deviceId;
	}
	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}
	public String getDeviceName() {
		return deviceName;
	}
	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}
	public String getHostname() {
		return hostname;
	}
	public void setHostname(String hostname) {
		this.hostname = hostname;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public Boolean getChecked() {
		return checked;
	}
	public void setChecked(Boolean checked) {
		this.checked = checked;
	}
	public String getCommand() {
		return command;
	}
	public void setCommand(String command) {
		this.command = command;
	}
	public Long getTimeout() {
		return timeout;
	}
	public void setTimeout(Long timeout) {
		this.timeout = timeout;
	}
	public DeviceStatus getDeviceStatus() {
		return deviceStatus;
	}
	public void setDeviceStatus(DeviceStatus deviceStatus) {
		this.deviceStatus = deviceStatus;
	}
	public DateTime getCreateTime() {
		return createTime;
	}
	public void setCreateTime(DateTime createTime) {
		this.createTime = createTime;
	}
	public DateTime getLastCheck() {
		return lastCheck;
	}
	public void setLastCheck(DateTime lastCheck) {
		this.lastCheck = lastCheck;
	}
	public String getDeviceType() {
		return deviceType;
	}
	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}
	
}




